<template>
  <!-- <com-test :titleInfo="{ value: 'vue3+TS实战开发', color: 'red' }"></com-test>
  <com-test
    :titleInfo="{ value: 'vue3+TS实战开发', color: 'yellow' }"
    :contentInfo="{ value: 'vue3 + ts实战开发学习就上B站找young村长', color: 'blue' }"></com-test>
  <com-test-1></com-test-1> -->
  <!-- <com-test2 :titleInfo="{ value: 'vue3+TS实战开发', color: 'red' }"></com-test2> -->
  <!-- <com-store></com-store>
  <com-store1></com-store1> -->
  <!-- <com-module></com-module> -->
  <router-link to="/">待办列表</router-link> <router-link to="/add">新增</router-link> <router-link to="/api">获取数据</router-link>
  <router-view></router-view>
</template>

<script lang="ts" setup>
import ComTest2 from './components/ComTest2.vue'
import ComStore from './components/ComStore.vue'
import ComStore1 from './components/ComStore1.vue'
import ComModule from './components/ComModule.vue'
import { useStore } from 'vuex'
import { key } from './store'
const store = useStore(key)
store.dispatch('todos/initTodo')
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
